<?php
//session值的读取:
	session_start();
    $student_nam = $_SESSION['student_nam'];
    $student_num = $_SESSION['student_num'];
    $row=$_SESSION["record_row"];
	$line=$_SESSION["record_line"];    
?>
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">  <!-- 以上代码告诉IE浏览器，IE8/9及以后的版本都会以最高版本IE来渲染页面。 -->  
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title>哈工大（威海）教师预约系统——取消预约</title>
	<link rel="stylesheet" href="../css/normalize.css">
	<link rel="stylesheet" href="../css/common.css">
	<link rel="stylesheet" href="../css/room_select.css">
</head>
<body>
	<header>
		<div class="logo">
			<img src="../images/logo1.png" alt="哈尔滨工业大学（威海）logo" class="logo-img vertical-center">
			<h1 class="vertical-center">教师预约管理系统</h1>
		</div>
		<div class="logoff">
			<a href="#"><span><em class="username"><?php echo $student_nam ?></em>（<em class="usernum"><?php echo $student_num ?></em>）</span></a>
			<a href="login.html" id="logout"><img src="../images/out.png" alt="注销登录"></a>
		</div>
	</header><!-- header结束 -->
	<div class="container" style="margin:20px auto;">
		<nav class="nav-list">
			<a href="index.html" class="nav-item" id="nav-item1">
				<span class="iconfont">&#xe603;</span>
				<span class="item-info">主页</span>
			</a>
			<a href="teacher_select.html" class="nav-item" id="nav-item2">
				<span class="iconfont">&#xe65f;</span>
				<span class="item-info">预约教师</span>
			</a>
			<a href="teacher_register.html" class="nav-item" id="nav-item3">
				<span class="iconfont">&#xe649;</span>
				<span class="item-info">联系管理员</span>
			</a>
			<a href="cancel_reserve.html" class="nav-item" id="nav-item4">
				<span class="iconfont">&#xe68d;</span>
				<span class="item-info" style="display: none;">取消预约</span>
			</a>
			<a href="reserve_record.html" class="nav-item" id="nav-item6">
				<span class="iconfont">&#xe63c;</span>
				<span class="item-info">预约记录</span>
			</a>
			<a href="default_record.html" class="nav-item" id="nav-item7">
				<span class="iconfont">&#xe6e6;</span>
				<span class="item-info">未到达记录</span>
			</a>
			<span class="triangle" style="left:459px"></span>
		</nav>
		<div class="seat-content">
			
			<div class="seat-map" id="seat-map"></div>
		</div>
		<div class="teacher-show">
			<form class="teacher-form" action="cancle_record_php.php" method="post" id="teacher-form">
				<select  class="teacher-select" id="select" name="cancle" multiple size="6">
					
					<?php 
    				for($i=0; $i<$line; $i++)
    				{
                    ?>
    					<optgroup label="<?php echo $row[$i][3]; ?>"  >
						<option value="<?php echo $row[$i][0]; ?>" ><?php echo $row[$i][1]."     ".$row[$i][2]."     ".$row[$i][4]; ?></option>
                        </optgroup>
   					<?php
                    }
    				?><br>
					
				</select>
				<button id="teacher-sure">取消预约</button>
	  		</form>
		</div>
	</div>
	<script type="text/javascript" src="../script/jquery-3.1.1.min.js"></script>
	<script type="text/javascript" src="../script/common.js"></script>
</body>
</html>